home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / archival / ftp / ftpd / Makefile < prev    next >
Encoding:
Makefile  |  1989-05-09  |  1.6 KB  |  54 lines

  1. #
  2. # Copyright (c) 1988 Regents of the University of California.
  3. # All rights reserved.
  4. #
  5. # Redistribution and use in source and binary forms are permitted
  6. # provided that the above copyright notice and this paragraph are
  7. # duplicated in all such forms and that any documentation,
  8. # advertising materials, and other materials related to such
  9. # distribution and use acknowledge that the software was developed
  10. # by the University of California, Berkeley.  The name of the
  11. # University may not be used to endorse or promote products derived
  12. # from this software without specific prior written permission.
  13. # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  14. # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  15. # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  16. #
  17. #    @(#)Makefile    based on 5.10 (Berkeley) 4/20/89
  18. #
  19. CFLAGS=    -O -I../ftp -I. -DSETPROCTITLE -I/usr/local/include
  20. LIBC=    /lib/libc.a
  21. SRCS=    ftpd.c ftpcmd.c glob.c logwtmp.c popen.c vers.c\
  22.     strtok.c strpbrk.c getusershell.c
  23. OBJS=    ftpd.o ftpcmd.o glob.o logwtmp.o popen.o vers.o  \
  24.     strtok.o strpbrk.o getusershell.o
  25. MAN=    ftpd.0
  26.  
  27. all: ftpd
  28.  
  29. ftpd: ${OBJS} ${LIBC}
  30.     ${CC} -o $@ ${OBJS} -lresolv
  31.  
  32. vers.o: ftpd.c ftpcmd.y
  33.     sh newvers.sh
  34.     ${CC} ${CFLAGS} -c vers.c
  35.  
  36. clean:
  37.     rm -f ${OBJS} ftpd core ftpcmd.c
  38.  
  39. cleandir: clean
  40.     rm -f ${MAN} tags .depend
  41.  
  42. depend: ${SRCS}
  43.     mkdep ${CFLAGS} ${SRCS}
  44.  
  45. install: ${MAN}
  46.     install -s -o bin -g bin -m 755 ftpd ${DESTDIR}/usr/libexec
  47.     install -c -o bin -g bin -m 755 ftpd.0 ${DESTDIR}/usr/man/cat8
  48.  
  49. lint: ${SRCS}
  50.     lint ${CFLAGS} ${SRCS}
  51.  
  52. tags: ${SRCS}
  53.     ctags ${SRCS}
  54.